<?php

//form a basic xml node
function basicXMLNode( $obj, $nodeName )
{
	$xmlString = "<Site>"; //. $nodeName .

	foreach ($obj as $fieldName => $fieldValue) {
		$xmlString .= "<" . $fieldName . ">";
		$xmlString .= $fieldValue;
		$xmlString .= "</" . $fieldName . ">";
	}
	
	$xmlString .= "</Site>"; //. $nodeName .
	
	
	
	return $xmlString;
}

?>